package com.yx.system.dao;

import com.yx.system.entity.TdBook;
import com.yx.system.entity.TdHistory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 历史记录
 */
@Repository
@Mapper
public interface TdHistoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdHistory record);

    int insertSelective(TdHistory record);

    TdHistory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdHistory record);

    int updateByPrimaryKey(TdHistory record);

    /**
     * 查询书籍列表
     */
    List<TdHistory> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

}